<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Quản trị website</title>
<link rel="stylesheet" href="<?php echo PATH?>/administrator/media/styles/system.css" type="text/css">

<script type="text/javascript">
    function checklogin()
    {
        with(frmlogin)
        {
            re=/^\s*$/;
            if(re.test(emname.value))
            {
                alert("Tên đăng nhập không được bỏ trống");
                emname.focus();
                return false;
            }
        }
    }
</script>
</head>
<body>
<div class="frmlogin">
    <h3>Login System</h3>
    <form id="login" name="frmlogin" method="post" action="" onsubmit="return checklogin();">
        <table class="login_tbl" border="0">
            <tr>
                <td>Username:</td>
                <td><input class="inputtext" name="emname" id="username" type="text" value="<?=$_POST['emname']?>"></td>
            </tr>

            <tr>
                <td>Password:</td>
                <td><input class="inputtext" name="password" id="password" type="password" value="<?=$_POST['password']?>"></td>
            </tr>

            <tr>
                <td align="center" colspan="2">
                    <input class="inputbut" type="submit" value="Login" name="login">
                    <input class="inputbut" onclick="location='<?=PATH?>'" type="button" value="Exit">
                </td>
            </tr>
        </table>
    </form>
</div>
</body>
